<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>

<body>
    <div id="app">
        {{message}}
    </div>
    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                message: "hello world!"
            },
            methods: {
                show() {
                    console.log('执行了show方法！')
                }
            },
            created() {
                console.log(`Vue 实例挂载对象el: ${this.$el}`);
                console.log(`Vue实例的data对象：${this.$data}`);
                console.log(`Vue实例的message属性值： ${this.message}`)
                console.log(`Vue实例的 methods对象: ${this.$options.methods}`)
                this.show();
            }
        })
    </script>
</body>

</html>